<% if flash['notice'] %>
    <p style="color: red;"><%= flash['notice'] %></p>
<% end %>

<% #TODO Can make this page more dynamic %>
<% form_for :submit, :url => {:action => :submit_file}, :html => {:multipart=> true} do |form| %>
    <p><label for="file">File</label>:
    <%= form.file_field :file -%>


    <p><label for="problem">Problem</label>:
    <%= form.select("submission_for", Problem.find(:all).map {|i| i.name}) %></p>
    
    <p><label for="problem">Language</label>:
    <%= form.select("submission_language", ["C", "Java"]) %></p>

    <p><label for="problem">File Name</label>:
    <%= form.text_field("submission_name") %></p>

     
    <%= submit_tag "Submit" %>
<% end %> 
